# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-parver
_pkgname=parver
pkgver=0.3.1
pkgrel=2
pkgdesc="Parse and manipulate PEP 440 version numbers"
url="https://github.com/RazerM/parver"
license="MIT"
arch="noarch"
depends="python3 py3-arpeggio"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-hypothesis py3-pretend"
source="$_pkgname-$pkgver.tar.gz::https://github.com/RazerM/parver/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD"/build/lib pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
}

sha512sums="2ea7eb7be0c58657f5261d7b4729da6caaf2fac67db3fc3f36d29627bdbeba45f6ecb0e4bb251575b621908eb1ff5fa5ede5fc2ef0e041156dcc00548fd34360  parver-0.3.1.tar.gz"
